package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysProjectExpertConfigMapper;
import com.ruoyi.system.domain.SysProjectExpertConfig;
import com.ruoyi.system.service.ISysProjectExpertConfigService;

/**
 * 专家抽取设置2Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-08
 */
@Service
public class SysProjectExpertConfigServiceImpl implements ISysProjectExpertConfigService 
{
    @Autowired
    private SysProjectExpertConfigMapper sysProjectExpertConfigMapper;

    /**
     * 查询专家抽取设置2
     * 
     * @param id 专家抽取设置2主键
     * @return 专家抽取设置2
     */
    @Override
    public SysProjectExpertConfig selectSysProjectExpertConfigById(Integer id)
    {
        return sysProjectExpertConfigMapper.selectSysProjectExpertConfigById(id);
    }

    /**
     * 查询专家抽取设置2列表
     * 
     * @param sysProjectExpertConfig 专家抽取设置2
     * @return 专家抽取设置2
     */
    @Override
    public List<SysProjectExpertConfig> selectSysProjectExpertConfigList(SysProjectExpertConfig sysProjectExpertConfig)
    {
        return sysProjectExpertConfigMapper.selectSysProjectExpertConfigList(sysProjectExpertConfig);
    }

    /**
     * 新增专家抽取设置2
     * 
     * @param sysProjectExpertConfig 专家抽取设置2
     * @return 结果
     */
    @Override
    public int insertSysProjectExpertConfig(SysProjectExpertConfig sysProjectExpertConfig)
    {
        sysProjectExpertConfig.setCreateTime(DateUtils.getNowDate());
        return sysProjectExpertConfigMapper.insertSysProjectExpertConfig(sysProjectExpertConfig);
    }

    /**
     * 修改专家抽取设置2
     * 
     * @param sysProjectExpertConfig 专家抽取设置2
     * @return 结果
     */
    @Override
    public int updateSysProjectExpertConfig(SysProjectExpertConfig sysProjectExpertConfig)
    {
        sysProjectExpertConfig.setUpdateTime(DateUtils.getNowDate());
        return sysProjectExpertConfigMapper.updateSysProjectExpertConfig(sysProjectExpertConfig);
    }

    /**
     * 批量删除专家抽取设置2
     * 
     * @param ids 需要删除的专家抽取设置2主键
     * @return 结果
     */
    @Override
    public int deleteSysProjectExpertConfigByIds(Integer[] ids)
    {
        return sysProjectExpertConfigMapper.deleteSysProjectExpertConfigByIds(ids);
    }

    /**
     * 删除专家抽取设置2信息
     * 
     * @param id 专家抽取设置2主键
     * @return 结果
     */
    @Override
    public int deleteSysProjectExpertConfigById(Integer id)
    {
        return sysProjectExpertConfigMapper.deleteSysProjectExpertConfigById(id);
    }
}
